cmake_minimum_required(VERSION 3.18)
project(MyMathApp LANGUAGES CXX)

# 启用测试支持
include(CTest)

# 查找 MyMath 库
find_package(MyMath REQUIRED CONFIG)

add_executable(main main.cpp)
target_link_libraries(main PRIVATE MyMath::MyMath)

# 将测试添加到 CTest
add_test(NAME TestMyMath COMMAND main)